package com.fortune.service.impl;

import com.fortune.dao.ClientRegisteredDao;
import com.fortune.dto.in.ClientRegistered.ClientRegisteredDto;
import com.fortune.service.ClientRegisteredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClientRegisteredServiceImpl implements ClientRegisteredService {
    @Autowired
    private ClientRegisteredDao clientRegisteredDao;
    @Override
    public int addClient(ClientRegisteredDto clientRegisteredDto, String clientId) {
        return clientRegisteredDao.addClient(clientRegisteredDto, clientId);
    }

    /**
     * 验证手机号
     * @param phone
     * @return
     */
    @Override
    public Integer veriPhoneByClient(String phone) {
        return clientRegisteredDao.veriPhoneByClient(phone);
    }

    @Override
    public Integer veriPhoneByDealer(String phone) {
        return clientRegisteredDao.veriPhoneByDealer(phone);
    }

    @Override
    public Integer veriPhoneByVendor(String phone) {
        return clientRegisteredDao.veriPhoneByVendor(phone);
    }

    @Override
    public Integer veriPhoneByplatform(String phone) {
        return clientRegisteredDao.veriPhoneByplatform(phone);
    }
}
